package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.ProjectExecutionTasksMapper;
import com.ruoyi.project.domain.ProjectExecutionTasks;
import com.ruoyi.project.service.IProjectExecutionTasksService;

/**
 * 项目执行任务Service业务层处理
 * 
 * @author czj
 * @date 2025-01-06
 */
@Service
public class ProjectExecutionTasksServiceImpl implements IProjectExecutionTasksService 
{
    @Autowired
    private ProjectExecutionTasksMapper projectExecutionTasksMapper;

    /**
     * 查询项目执行任务
     * 
     * @param taskId 项目执行任务主键
     * @return 项目执行任务
     */
    @Override
    public ProjectExecutionTasks selectProjectExecutionTasksByTaskId(Long taskId)
    {
        return projectExecutionTasksMapper.selectProjectExecutionTasksByTaskId(taskId);
    }

    /**
     * 查询项目执行任务列表
     * 
     * @param projectExecutionTasks 项目执行任务
     * @return 项目执行任务
     */
    @Override
    public List<ProjectExecutionTasks> selectProjectExecutionTasksList(ProjectExecutionTasks projectExecutionTasks)
    {
        return projectExecutionTasksMapper.selectProjectExecutionTasksList(projectExecutionTasks);
    }

    /**
     * 新增项目执行任务
     * 
     * @param projectExecutionTasks 项目执行任务
     * @return 结果
     */
    @Override
    public int insertProjectExecutionTasks(ProjectExecutionTasks projectExecutionTasks)
    {
        return projectExecutionTasksMapper.insertProjectExecutionTasks(projectExecutionTasks);
    }

    /**
     * 修改项目执行任务
     * 
     * @param projectExecutionTasks 项目执行任务
     * @return 结果
     */
    @Override
    public int updateProjectExecutionTasks(ProjectExecutionTasks projectExecutionTasks)
    {
        return projectExecutionTasksMapper.updateProjectExecutionTasks(projectExecutionTasks);
    }

    /**
     * 批量删除项目执行任务
     * 
     * @param taskIds 需要删除的项目执行任务主键
     * @return 结果
     */
    @Override
    public int deleteProjectExecutionTasksByTaskIds(Long[] taskIds)
    {
        return projectExecutionTasksMapper.deleteProjectExecutionTasksByTaskIds(taskIds);
    }

    /**
     * 删除项目执行任务信息
     * 
     * @param taskId 项目执行任务主键
     * @return 结果
     */
    @Override
    public int deleteProjectExecutionTasksByTaskId(Long taskId)
    {
        return projectExecutionTasksMapper.deleteProjectExecutionTasksByTaskId(taskId);
    }
}
